@REM 将Python文件转化为可执行程序

@echo OFF

set flag=screenShot_4.0
echo %flag%
echo 1.use py
echo 2.use spec
set /p a=

if %a%==2 (
echo Creating exe program by spec file.
for %%i in (*.*) do (
    if %%i==%flag%.spec (
        echo %%i
        echo y|pyinstaller %flag%.spec
        
        pause
        exit
    )
))

echo Creating exe program by py file, is a new program.

echo y|pyinstaller %flag%.py --icon=".\Icon\getImage.ico" --noconsole

@REM echo F|xcopy ".\setting.json" ".\dist\setting.json"

pause